import wxsdk from "@/utils/wxsdk";
import global_ from "../../global.config";
export const ACT_CODE = "mf20190119";
export const SHARE_TITLE = "臂力足够大，年货带回家！";
export const SHARE_DESC = "明发25周年，多盘峰聚，年礼壕送，诚意话费，来摇来拿，来摇来拿！";
export const SHARE_LINK = location.protocol + '//' + location.host + '/act/mfact/index';
export const SHARE_IMG_URL = "http://rs.static.quanc.com.cn/activies/mfAct/share.gif";
export function checkaward(list, id) {
    let flag = false;
    list.forEach(function (v, i) {
        if(v.prizecode == id){
            flag = true;
        }
    })
    return flag;
}
export function initShare() {
    global_.SHARE_TITLE = SHARE_TITLE;
    global_.SHARE_DESC = SHARE_DESC;
    global_.SHARE_LINK = SHARE_LINK;
    global_.SHARE_IMG_URL = SHARE_IMG_URL;
    wxsdk.init();
}